package inc.gome.dynamic.datasource.mapper;


import inc.gome.dynamic.datasource.entity.RestUser;
import inc.gome.dynamic.datasource.entity.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Component;


/*主数据源*/
@Mapper
@Component
public interface MasterMapper {

    @Select("select * from  sys_user where user_id = #{id}")
    public SysUser findById(@Param("id") Integer  id);



    @Update("update  zone_dev.sys_user set user_name =#{name} where user_id =#{id}")
    void updateById(@Param("id")Integer id, @Param("name")String name);
}
